package view;

import java.awt.Dimension;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;

import javax.swing.BoxLayout;
import javax.swing.JFrame;
import javax.swing.JMenuBar;
import javax.swing.JPanel;

import model.CTFModel;

public class WoobyCTFGUI extends JFrame {
	
	public WoobyCTFGUI(CTFModel model) {
		
		setBounds(100, 100, 1024, 768);
		addWindowListener(
			new WindowAdapter() {
				public void windowClosing(WindowEvent evt) {
					System.exit(0);
				}
			}
		);
		
		setTitle("Wooby-CTF");
		setVisible(true);
		
		WoobyCTFGUIMenuBar menuBar = new WoobyCTFGUIMenuBar();
		setJMenuBar(menuBar);
		
		WoobyCTFMapEditorMainPanel panel = new WoobyCTFMapEditorMainPanel(model);
		panel.setLocation(0,0);
		panel.setSize(100, 100);
		add(panel);
		
	}
}
